/*
 * XQueryDocumentStyle.java
 */

package xq.swing.text;

import java.awt.Color;

/**
 *
 * @author ThorntonRP
 */
public class XQueryDocumentStyle {
	
	private static XQueryDocumentStyle instance;

	public static XQueryDocumentStyle getInstance() {
		if (instance == null) {
			initInstance();
		}
		return instance;
	}
	
	private synchronized static void initInstance() {
		if (instance == null) {
			instance = new XQueryDocumentStyle();
		}
	}

	private Style normalStyle;
	private Style keywordStyle;
	private Style variableStyle;
	private Style commentStyle;
	private Style specialCommentStyle;
	private Style quoteStyle;
	private Style xmlElementStyle;
	private Style xmlAttributeStyle;
	
	public XQueryDocumentStyle() {
		normalStyle = new Style();
		keywordStyle = new Style();
		variableStyle = new Style();
		commentStyle = new Style();
		specialCommentStyle = new Style();
		quoteStyle = new Style();
		xmlElementStyle = new Style();
		xmlAttributeStyle = new Style();
		
		normalStyle.setForegroundColor(Color.BLACK);
		keywordStyle.setForegroundColor(new Color(  0,   0, 230));
		variableStyle.setForegroundColor(new Color(  0, 153,   0));
		commentStyle.setForegroundColor(new Color(150, 150, 150));
		specialCommentStyle.setForegroundColor(new Color(150, 150, 150));
		quoteStyle.setForegroundColor(new Color(206, 123,   0));
		xmlElementStyle.setForegroundColor(new Color(115,   0, 115));
		xmlAttributeStyle.setForegroundColor(new Color(115,   0, 115));
	}
}
